package com.teamin.service.impl.wx;

import javax.servlet.annotation.WebServlet;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;

@WebServlet("/TeaminWXServer")
public class Attention {
	private static final long serialVersionUID = 1L;

	public void getData(InputStream inputStream) {

		InputStreamReader inputStreamReader;
		try {
			inputStreamReader = new InputStreamReader(inputStream, "utf-8");
			BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
			StringBuffer buffer = new StringBuffer();
			String str = null;
			while ((str = bufferedReader.readLine()) != null) {
				buffer.append(str);
			}
			System.out.println(buffer.toString());
		} catch (Exception e1) {
			e1.printStackTrace();
		}

	}

}
